<?php
// -----------------------------------------------------------------------------
// include
// -----------------------------------------------------------------------------

include "../config/config.php";
include "../auth.php";

// -----------------------------------------------------------------------------
?>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>目标管理</title>
    <link rel="stylesheet" href="../resources/bootstrap-5.2.0-beta1-dist/css/bootstrap.min.css">
</head>
<body>

<!-- ----------------------------------------------------------------------- -->

<script src="../resources/bootstrap-5.2.0-beta1-dist/js/bootstrap.min.js"></script>
<script src="../resources/jQuery/jquery-3.5.1.js"></script>
<?php include "../globalNavbar.php"; ?>

<!-- ----------------------------------------------------------------------- -->

<!-- div container start -->
<div class="container container-fluid mb-5">

    <!-- 导航栏 开始 -->
    <div class="mt-3">
        <nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a class="text-decoration-none" href="<?php echo $homepage; ?>">首页</a></li>
                <li class="breadcrumb-item active">目标管理</li>
            </ol>
        </nav>
    </div>
    <!-- 导航栏 结束 -->

    <div class="mt-3 mb-3">

        <div class="list-group mt-3">
            <a href="create.php" class="list-group-item list-group-item-action">新建目标</a>
            <!-- <a href="filter.php" class="list-group-item list-group-item-action">筛选目标</a> -->
            <a href="listOfGoals.php?class=all&status=all&sort=lastEditTime&sequence=desc" class="list-group-item list-group-item-action">全部目标</a>
        </div>

        <div class="list-group mt-3">
            <a href="listOfGoals.php?class=long&status=ongoing&sort=sortNumber&sequence=desc" class="list-group-item list-group-item-action">长期目标（三年以上）</a>
            <a href="listOfGoals.php?class=medium&status=ongoing&sort=sortNumber&sequence=desc" class="list-group-item list-group-item-action">中期目标（三年以内）</a>
            <a href="listOfGoals.php?class=short&status=ongoing&sort=sortNumber&sequence=desc" class="list-group-item list-group-item-action">短期目标（三月以内）</a>
        </div>

        <div class="list-group mt-3">
            <a href="listOfGoals.php?class=all&status=waiting&sort=lastEditTime&sequence=desc" class="list-group-item list-group-item-action">未进行的目标</a>
            <a href="listOfGoals.php?class=all&status=overdue&sort=endDate&sequence=desc" class="list-group-item list-group-item-action">已逾期的目标</a>
            <a href="listOfGoals.php?class=all&status=abandoned&sort=giveupDate&sequence=desc" class="list-group-item list-group-item-action">已放弃的目标</a>
            <a href="listOfGoals.php?class=all&status=achieved&sort=achieveDate&sequence=desc" class="list-group-item list-group-item-action">已完成的目标</a>
        </div>

    </div>

</div>
<!-- div container end -->

</body>
</html>
